package com.lyf.shop.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyf.common.core.annotation.Excel;
import com.lyf.common.core.web.domain.BaseEntity;

/**
 * 商品对象 t_commodity
 * 
 * @author lyf
 * @date 2023-02-10
 */
public class Commodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 超市id */
    private Long supermarketId;

    @Excel(name = "超市名称")
    private String  supermarketName;
    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 分类 */
    private Long classificatonId;

    @Excel(name = "分类名称")
    private String  classificationName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shelfTime;

    /** 下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date downTime;

    /** 商品过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "商品过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiratTime;

    /** 所属区域id */
    private Long ownRegionId;

    @Excel(name = "区域名称")
    private String  regionName;

    /** 质量单位 */
    @Excel(name = "质量单位")
    private String qualityUnit;

    /** 质量单位 */
    @Excel(name = "库存单位")
    private String inventoryUnit;
    /** 图片 */
    @Excel(name = "图片", cellType = Excel.ColumnType.IMAGE)
    private String picture;

    /** 质量 */
    @Excel(name = "质量")
    private String quality;

    /** 库存 */
    @Excel(name = "库存")
    private Long inventory;

    /** 商品數量 */
    private Long commodityNum;

    /** 生产商 */
    @Excel(name = "生产商")
    private String producer;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 逻辑删除状态（0：未删除 1：已删除） */
    private String delFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;




    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getClassificatonId() {
        return classificatonId;
    }

    public void setClassificatonId(Long classificatonId) {
        this.classificatonId = classificatonId;
    }

    public Long getCommodityNum() {
        return commodityNum;
    }

    public void setCommodityNum(Long commodityNum) {
        this.commodityNum = commodityNum;
    }

    public void setSupermarketId(Long supermarketId)
    {
        this.supermarketId = supermarketId;
    }

    public Long getSupermarketId() 
    {
        return supermarketId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public Long getClassificationId() {
        return classificatonId;
    }

    public void setClassificationId(Long classificationId) {
        this.classificatonId = classificationId;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setShelfTime(Date shelfTime) 
    {
        this.shelfTime = shelfTime;
    }

    public Date getShelfTime() 
    {
        return shelfTime;
    }
    public void setDownTime(Date downTime) 
    {
        this.downTime = downTime;
    }

    public Date getDownTime() 
    {
        return downTime;
    }
    public void setExpiratTime(Date expiratTime) 
    {
        this.expiratTime = expiratTime;
    }

    public Date getExpiratTime() 
    {
        return expiratTime;
    }
    public void setOwnRegionId(Long ownRegionId)
    {
        this.ownRegionId = ownRegionId;
    }

    public Long getOwnRegionId()
    {
        return ownRegionId;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setQuality(String quality) 
    {
        this.quality = quality;
    }

    public String getQuality() 
    {
        return quality;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }
    public void setProducer(String producer) 
    {
        this.producer = producer;
    }

    public String getProducer() 
    {
        return producer;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public String getSupermarketName() {
        return supermarketName;
    }

    public void setSupermarketName(String supermarketName) {
        this.supermarketName = supermarketName;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getClassificationName() {
        return classificationName;
    }

    public void setClassificationName(String classificationName) {
        this.classificationName = classificationName;
    }

    public String getQualityUnit() {
        return qualityUnit;
    }

    public void setQualityUnit(String qualityUnit) {
        this.qualityUnit = qualityUnit;
    }

    public String getInventoryUnit() {
        return inventoryUnit;
    }

    public void setInventoryUnit(String inventoryUnit) {
        this.inventoryUnit = inventoryUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("supermarketId", getSupermarketId())
            .append("name", getName())
            .append("classificationId", getClassificationId())
            .append("price", getPrice())
            .append("shelfTime", getShelfTime())
            .append("downTime", getDownTime())
            .append("expiratTime", getExpiratTime())
            .append("ownRegionId", getOwnRegionId())
            .append("picture", getPicture())
            .append("quality", getQuality())
            .append("inventory", getInventory())
            .append("producer", getProducer())
            .append("brand", getBrand())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remarks", getRemarks())
            .append("RegionName",getRegionName())
                .append("supermarketName",getSupermarketName())
                .append("classificationName",getClassificationName())
                .append("QualityUnit",getQualityUnit())
                .append("InventoryUnit",getInventoryUnit())

                .toString();
    }
}
